package com.mdlaser.sys.dto;

import com.mdlaser.enums.StatusType;
import com.mdlaser.enums.WhetherType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author mdlaser
 * @since 2024-04-05
 */
@Data
public class ResourceDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "名称")
    private String name;

    @Schema(description = "权限")
    private String permission;

    @Schema(description = "类型：1-菜单 2-按钮 3-接口")
    private Integer type;

    @Schema(description = "排序")
    private Integer sort = 0;

    @Schema(description = "菜单路径")
    private String path;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "菜单组件")
    private String component;

    @Schema(description = "菜单外连接")
    private String isLink;

    @Schema(description = "菜单是否隐藏")
        private Integer isHide = WhetherType.No.getValue();

    @Schema(description = "菜单是否全屏")
    private Integer isFull = WhetherType.No.getValue();

    @Schema(description = "菜单是否固定")
    private Integer isAffix= WhetherType.No.getValue();

    @Schema(description = "菜单是否进行路由缓存")
    private Integer isCache= WhetherType.Yes.getValue();

    @Schema(description = "父级id")
    private Integer parentId;

    @Schema(description = "状态 1-可用 2-不可用")
    private Integer status = StatusType.NORMAL.getValue();
}
